package controller;

public class UserAction {
	/*1.手动映射成员变量定义属性，属性名必须是表单的名称
	 * 2.对象映射
	 * */
	private String name;
	private String pwd;
	private User us;
	
	public User getUs() {
		return us;
	}
	public void setUs(User us) {
		this.us = us;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPwd() {
		return pwd;
	}
	public void setPwd(String pwd) {
		this.pwd = pwd;
	}
	public String register2(){
		System.out.println("name:"+us.getName());
		System.out.println("pwd:"+us.getPwd());
		System.out.println("用户注册成功！！！");
		return "success";
	}
	public String register(){
		System.out.println("name:"+name);
		System.out.println("pwd:"+pwd);
		System.out.println("用户注册成功！！！");
		return "success";
	}
	public String login(){
		System.out.println("登录成功");
		return "success2";
	}
}
